package com.ailargemodel.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

import java.util.Date;


/**
* 存储学生相关的信息
* @TableName user
*/
@Builder
@Slf4j
@Data
@TableName("user")
@AllArgsConstructor
public class User implements Serializable {

    /**
    * 
    */
    @TableId(type= IdType.AUTO)
    private Integer id;
    /**
    * 
    */
    @TableField("name")
    private String name;
    /**
    * 
    */
    @TableField("study_id")
    private String studyId;
    /**
    * 
    */
   @TableField("question_number")
    private Integer questionNumber;
    /**
    * 
    */
   @TableField("create_time")
    private Date createTime;
    /**
    * 
    */
   @TableLogic
   @TableField("is_live")
    private Integer isLive;

   private Integer conversationId;

    public User() {
    }
    public User(String name , String studyId){
        this.name = name;
        this.studyId = studyId;
    }

    public User(String studyId) {
        this.studyId = studyId;
    }

    public User(String name, String studyId, Integer conversationId) {
        this.name = name;
        this.studyId = studyId;
        this.conversationId = conversationId;
    }
}
